const http = require("http");

http.createServer((req,res)=>{
     if(req.url === "/api/pull_load"){
        res.writeHead(200,{
            "Content-Type":"application/json;chartset=utf-8",
            "Access-Control-Allow-Origin":"*"
        })
        res.end(JSON.stringify({"username":"Lucson",age:21,"message":"这是下拉加载请求的数据"}))
     }
}).listen(80,()=>{
    console.log("started success !!!");
})